#pragma once
#include "d3dx9.h"
#include "d3dx9math.h"
#include "util.h"

class GameObject
{
public:
	GameObject(void);
	~GameObject(void);
	virtual int initGeom(void);
	virtual int render(int time);

public:
	D3DXVECTOR3 m_Pos;	// position of object
	D3DXVECTOR3 m_Dir;	// dirction of object
	D3DXVECTOR3 Last_m_Pos; // last position of object
	float m_Roll;			// angle of rotation around z-axis
	float m_Pitch;		// angle of rotation around x-axis
	float m_Yaw;			// angle of rotation around y-axis
	float m_ScaleX;		// scale in x
	float m_ScaleY;		// scale in x
	float m_ScaleZ;		// scale in x

	static IDirect3DDevice9 *md3dDev;
	static int setd3dDev(IDirect3DDevice9 *d3dDev);  // setting the d3dDev global variable

	IDirect3DIndexBuffer9 *mp_IndBuf;
	IDirect3DVertexBuffer9 *mp_VtxBuf;
};
